package org.tc.product.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.product.entity.Secondcommoditys;

import java.util.List;

@RequestMapping("/SecondcommoditysService")
public interface SecondcommoditysService {

    @RequestMapping("/deleteSecById")
    int deleteSecById(@RequestParam("id") Integer id, @RequestParam("commodityid") Integer commodityid, @RequestParam("stock") Integer stock, @RequestParam("storeid") Integer storeid);

    @RequestMapping("/insertSec")
    int insertSec(@RequestBody Secondcommoditys secondcommoditys);

//    @RequestMapping("/selectAllSec")
//    PageHelper<Secondcommoditys> selectAllSec(@RequestParam("pageNo") int pageNo, @RequestParam("pageSize") int pageSize, @RequestParam("storeid") Integer storeid, @RequestParam("state") Integer state);

    @RequestMapping("/updSec")
    int updSec(@RequestBody Secondcommoditys secondcommoditys);

    @RequestMapping("/QueryAllSecond")
    List<Secondcommoditys> QueryAllSecond(@RequestParam("storeid") Integer storeid);

    @RequestMapping("/selectAll")
    List<Secondcommoditys> selectAll(@RequestParam("storeid") Integer storeid, @RequestParam("state") Integer state);
}
